package com.cy.wangly.springcore.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestBeanTwo {
    
    private TestBeanOne testBeanOne;

    @Autowired
    public void setTestBeanOne(TestBeanOne testBeanOne) {
        System.out.println("setTestBeanOne");
        this.testBeanOne = testBeanOne;
    }

    private int i;

    public TestBeanTwo() {
        System.out.println(" init TestBeanTwo ");
    }

    public TestBeanTwo(int i) {
        this.i = i;
        System.out.println(" init TestBeanTwo by param:" + i);
    }

    public void print() {
        System.out.println(" two is print ");
    }
}
